package com.quanghoa.nguphaptienganh;
import android.app.Activity;
//import android.app.AlertDialog;
//import android.content.DialogInterface;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
//import android.view.MenuItem;
import android.os.Bundle;

import android.view.View;
import android.view.View.OnClickListener;

public class nguphaptienganh extends Activity implements OnClickListener  {
    /** Called when the activity is first created. */
    @Override
   
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        View hocBtn = findViewById(R.id.hoc_button);
        hocBtn.setOnClickListener(this);
        
        View aboutBtn = findViewById(R.id.about_button);
        aboutBtn.setOnClickListener(this);
        
        View exitBtn = findViewById(R.id.exit_button);
        exitBtn.setOnClickListener(this);
        
    }
   

	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()){
		
		case R.id.hoc_button:
			break;
			
		case R.id.about_button:
			Intent i = new Intent(this,About.class);
			startActivity(i);
			break;
		case R.id.exit_button:
			finish();
			break;
		
			
		}
	}
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
	 super.onCreateOptionsMenu(menu);
	 MenuInflater inflater = getMenuInflater();
	 inflater.inflate(R.menu.menu, menu);
	 return true;
	}
	@Override
    public boolean onOptionsItemSelected(MenuItem item) {
    	// TODO Auto-generated method stub
		Intent i = new Intent(this,ireVerb.class);
		startActivity(i);
		
    	return super.onOptionsItemSelected(item);
    }
	

}